<extend name="Public/base"/>
<block name="sidebar">
    <include file="sidemenu"/>
</block>
<block name="body">
    <div class="main-title">
        <h2>幻灯片管理</h2>
    </div>
    <div class="cf">
        <a class="btn" href="{:U('add')}">新 增</a>
    </div>

    <div class="data-table table-striped">
        <table>
            <thead>
            <tr>
                <th>ID</th>
                <th>演唱会</th>
                <th>场地</th>
                <th>大小</th>
                <th>状态</th>
                <th>创建时间</th>
                <th>操作</th>
            </tr>
            </thead>
            <tbody>
            <notempty name="list">
                <volist name="list" id="info">
                    <tr>
                        <td>{$info.id}</td>
                        <td>{$info.title}</td>
                        <td>{$info.stage_name}</td>
                        <td>{$info.size}</td>
                        <td>{$info.status}</td>
                        <td>{$info.create_time|date='Y-m-d H:i:s',###}</td>
                        <td>
                            <a title="编辑" href="{:U('detail?id='.$info['id'])}">编辑</a>
                            <a class="confirm ajax-get" title="删除"
                               href="{:U('del?id='.$info['id'])}">删除</a>
                        </td>
                    </tr>
                </volist>
                <else/>
                <td colspan="6" class="text-center"> aOh! 暂时还没有内容!</td>
            </notempty>
            </tbody>
        </table>

        <!-- 分页 -->
        <div class="page">
            {$_page}
        </div>
    </div>
</block>

<block name="script">
    <script type="text/javascript">

    </script>
</block>